<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <p id="text">赵高其</p>
  <p id="text1">一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字</p>
  <button onclick="fu()">点击复制</button>
</body>
<script>
  function fu() { document.execCommand('copy'); }


</script>

</html>